<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    
    <title>My JSP starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="css/zbCss/pageTable.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/defaultStyle.css" />
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/easyui.css" />
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/icon.css" />
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/pageTable.css" />
	<link rel="stylesheet" type="text/css" href="../../style/fzjc/fzjc.css" />

<script type="text/javascript" src="../../lib/easyui/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="../../lib/OpenLayers.js"></script>
	<script type="text/javascript" src="../../js/NestFramedCloud.js"></script>
	 <script type="text/javascript" src="../../lib/data.js"></script>
	 <script type="text/javascript" src="../../lib/jquery.form.js"></script>
	  <script type="text/javascript" src="../../js/yjzsfunctiondlg/zbgl.js"></script>
	   <script type="text/javascript" src="../../js/yjzsfunctiondlg/xxbs.js"></script>
	<script type="text/javascript" src="../../lib/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../lib/easyui/json2.js"></script>
	<script type="text/javascript"src="../../My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
		$(function(){
			$("#yydWrite").dialog({
				draggable : true,
				top : 50,
				left : 100,
				title : "填写单点上报信息",
				collapsible : true
			});
			$("#yydWrite").dialog("close");
		//已有点
			inittblyyd();
			setOption('china','yydShen');
			setSltDefaultVal("yydShen",'420000');
			$("#yydShen").attr("disabled","disabled");
			changeShenItem(document.getElementById("yydShen").value,'yydShi');
		//新增点
			setOption('china','xzdShen');
			setSltDefaultVal("xzdShen",'420000');
			$("#xzdShen").attr("disabled","disabled");
			changeShenItem(document.getElementById("xzdShen").value,'xzdShi');
			$('#tabxxbsdiv').tabs({
				onSelect:function(title){
				removeLayerAndFeatureForLogic();
					if(title=="新增点"){
						initLonLatEvtForXZD();
					}
				}
			});
		});
	</script>
  </head>
  
  <body onunload="removeLayerAndFeatureForLogic();">
	<div id="tabxxbsdiv" class="easyui-tabs" style="width:826px;height: 500px">
		<div title="已有点" style="padding: 0px;height: 300px;width: 500px;" >  
		 	行政区域：<select id="yydShen" onchange="changeShenItem(this.value,'yydShi')" ><option  selected="selected" value="" >请选择省</option></select>
			市：<select id="yydShi" onchange="changeShiItem(this.value,'yydXian')" ><option  selected="selected" value="">请选择市</option></select>
			县：<select id="yydXian" onchange="changeXianItem(this.value,'zhen')"><option  selected="selected" value="">请选择县</option></select>
			<br/>
			灾害点类型：<select id="yydZHLX" ><option selected="selected" value="">请选择灾害类型</option>
			<option  value="00">斜坡变形</option>
			<option  value="01">滑坡</option>
			<option  value="02">崩塌</option>
			<option  value="03">泥石流</option>
			<option  value="04">岩溶塌陷</option>
			<option  value="05">采空塌陷</option>
			<option  value="06">地裂缝</option>
			<option  value="07">地面沉降</option>
			<option  value="08">塌岸</option>
			<option  value="09">高切坡</option>
			<option  value="10">危岩体</option>
			</select>
			名称：<input type="text"  id="yydMC"/>
			<input type="button" value="查询" class="btn_2z"
					onclick="queryyydDDSB()" />
			<table id="tblyyd" width="820px" height="450px"></table>
		</div>
		
		<div title="新增点" style="padding-top: 10px;height: 400px;width: 500px;background-color: #EEEEEE;" >
		<form id="xzdForm" action="insertXZDForXxbs.shtml" method="post" enctype="multipart/form-data">
			<select id="xzdShen" onchange="changeShenItem(this.value,'xzdShi')" style="margin-right:31px;display: none" name="xzdSheng"><option  selected="selected" value="" >请选择省</option></select>
			<table style="margin-left:150px;">
				<tr>
					<td>市：</td><td><select id="xzdShi" onchange="changeShiItem(this.value,'xzdXian',true)" style="width:100%" name="xzdShi"><option  selected="selected" value="">请选择市</option></select></td>
					<td>县：</td><td><select id="xzdXian" onchange="changeXianItem(this.value,'zhen',true)" style="width:100%" name="xzdXian"><option  selected="selected" value="">请选择县</option></select></td>
				</tr>
				<tr>
					<td>灾害点类型：</td><td><select id="xzdZHLX"  name="xzdZHLX" style="width:100%"><option selected="selected" value=""  >请选择灾害类型</option>
			<option  value="00">斜坡变形</option>
			<option  value="01">滑坡</option>
			<option  value="02">崩塌</option>
			<option  value="03">泥石流</option>
			<option  value="04">岩溶塌陷</option>
			<option  value="05">采空塌陷</option>
			<option  value="06">地裂缝</option>
			<option  value="07">地面沉降</option>
			<option  value="08">塌岸</option>
			<option  value="09">高切坡</option>
			<option  value="10">危岩体</option>
			</select></td>
			<td>上报时间：</td><td><input id="xzdTime"  name="yjcz12.yjcz12010" style="width:100%" class="Wdate" type="text" onfocus="WdatePicker({startDate:' 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" /></td>
				</tr>
				<tr>
					<td>经度：</td><td><input type="text" id="xzdLon" style="width:100%" name="yjcz12.yjcz12030"/></td>
					<td>纬度：</td><td><input type="text" id="xzdLat" style="width:100%" name="yjcz12.yjcz12040"/></td>
				</tr>
				<tr>
					<td>上报记录：</td><td colspan="3"><textarea id="xzdSBNR" style="height: 70px;width:100%" name="yjcz12.yjcz12060" ></textarea></td>
				</tr>
				<tr>
					<td>多媒体上报记录：</td><td colspan="3"><input id="xzdDMT" type="file" onchange="checkXzdFileType(this.value)" name="dmt" size="60"/>(上报电话录音)</td>
				</tr>
				<tr>
					<td>地理位置：</td><td colspan="3"><input id="xzdDLWZ" type="text"/ style="width:100%" name="yjcz12.yjcz12020" size="60"></td>
				</tr>
			</table>
			<div style="margin-left: 350px;margin-top:10px;margin-bottom:10px;height:20px;">
			<input type="button" value="保存" class="btn_2z"
					onclick="addxzdDDSB()" />
			<input type="button" value="重置" class="btn_2z"
					onclick="resetxzdEvent()" />
			</div>
			</form>
		</div>
	</div>
	<div id="yydWrite" style="width:530px;height:280px;">
	<form id="yydForm" action="insertYYDForXxbs.shtml" method="post" enctype="multipart/form-data">
		<div style="margin-left: 20px;margin-top:10px;margin-bottom:10px;height:20px;">
			统一编号：<input id="yydNum" name="yjcz12.yjcz12000"/>
			上报时间：<input id="yydTime"  name="yjcz12.yjcz12010" class="Wdate" type="text" onfocus="WdatePicker({startDate:' 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
			</div>
			<div style="margin-left: 20px;margin-top:10px;margin-bottom:10px;height:20px;display:none">
			经度：<input type="text" id="yydLon"  style="margin-left:25px" name="yjcz12.yjcz12030"/>
			纬度：<input type="text" id="yydLat"  style="margin-left:25px" name="yjcz12.yjcz12040"/>
			灾害点标识：<input type="text" id="yydBiaoshi" name="yjcz12.jbqk0102" />
			</div>
			<div style="margin-left: 20px;margin-top:10px;margin-bottom:10px;height:80px;">
			上报记录：<textarea id="yydSBNR" style="height: 70px;width:379px;" name="yjcz12.yjcz12060"></textarea>
			</div>
			<div style="margin-left: 20px;margin-top:10px;margin-bottom:10px;height:20px;">
			多媒体上报记录：<input id="yydDMT" type="file" name="dmt" onchange="checkYydFileType(this.value)"/>(上报电话录音)
			</div>
			<div style="margin-left: 20px;margin-top:10px;margin-bottom:10px;height:20px;">
			地理位置：<input id="yydDLWZ" type="text"/ style="width:379px" name="yjcz12.yjcz12020">
			</div>
			<div style="margin-left: 200px;margin-top:10px;margin-bottom:10px;height:20px;">
			<input type="button" value="保存" class="btn_2z"  onclick="submityydEvent()"/>
			<input type="button" value="重置" class="btn_2z"
					onclick="resetyydEvent()" />
			</div>
			</form>
	</div>
	</body>
</html>
